Skip to content

[Refactor] Reuse webview test query client helper - #1088

Merged
edelauna merged 1 commit into
mainfrom
refactor/webview-test-utils-pilot-06q4nypl2c73c
Aug 1, 2026
Merged

[Refactor] Reuse webview test query client helper#1088
edelauna merged 1 commit into
mainfrom
refactor/webview-test-utils-pilot-06q4nypl2c73c

Conversation

@zoomote

@zoomote zoomote Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Created by Roomote. Follow up by mentioning @roomote, in the web UI, or in Discord.

What changed

  • Added exported createTestQueryClient() to webview-ui/src/utils/test-utils.tsx and reused it inside the shared Testing Library render wrapper.
  • Removed redundant manual QueryClientProvider setup from ContextWindowProgress.spec.tsx and ChatRow.subtask-links.spec.tsx so those specs rely on the shared render wrapper.

Why this change was made

This continues the approved test-utils rollout with an independent webview slice while the first pilot PR stays mergeable. The goal is still narrow: remove mechanical provider duplication without hiding test intent.

Impact

No user-facing behavior change. Webview tests get a clearer shared provider pattern, and the touched specs passed along with webview lint, typecheck, and the full Zoo-Code test suite.

Related PRs

@zoomote

zoomote Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor Author

No code issues found. See task

Reviewed 1bd964b

@edelauna
edelauna marked this pull request as ready for review August 1, 2026 12:56
@codecov

codecov Bot commented Aug 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@edelauna
edelauna enabled auto-merge August 1, 2026 12:56
@edelauna
edelauna added this pull request to the merge queue Aug 1, 2026
Merged via the queue into main with commit 69a6f79 Aug 1, 2026
25 checks passed
@edelauna
edelauna deleted the refactor/webview-test-utils-pilot-06q4nypl2c73c branch August 1, 2026 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants